package com.yuyou.fn.activity.service;

import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.activity.entity.ActivityCampusInventory;
import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.activity.entity.ActivityInventorySetting;
import com.yuyou.fn.activity.vo.*;
import com.yuyou.fn.platform.permission.DataPermission;
import org.apache.poi.xssf.streaming.SXSSFWorkbook;

import java.util.List;

/**
 *
 * ActivityCampusInventory 表数据服务层接口
 *
 */
public interface IActivityCampusInventoryService extends ISuperService<ActivityCampusInventory,Long> {

    void saveActivityCampusInventory(ActivityInventorySetting activityInventorySetting,List<Long> campusIds);

    void updateByActivityInventorySettingId(long activityInventorySettingId,ActivityInventorySetting activityInventorySetting);

    Page<ActivityCampusInventoryDetailVo> findInventoryDetailBySettingId(DataPermission dataPermission, ActivityCampusInventoryQueryVo activityCampusInventoryQueryVo, int pageNo, int pageSize);

    void updateByIdAndUpdateVo(long activityCampusInventoryId,ActivityCampusInventoryUpdateVo activityCampusInventoryUpdateVo);


    SXSSFWorkbook exporteActivityCampusInventory(DataPermission dataPermission, ActivityCampusInventoryQueryVo activityCampusInventoryQueryVo);
}